package org.finalministry.gui.components;

import javax.swing.JTree;

import org.finalministry.gui.GuiMain;
import org.finalministry.gui.action.LoadDataIntoTree;
import org.finalministry.gui.components.tree.IconTreeCellRenderer;

public class FinalministryTree extends JTree {

	private static final long serialVersionUID = 2362876755387335472L;

	private GuiMain gui;

	public FinalministryTree(GuiMain gui) {

		super();
		this.gui = gui;

		Object o = getModel().getRoot();

		LoadDataIntoTree loadDataIntoTree = new LoadDataIntoTree(gui);
		loadDataIntoTree.setTree(this);
		loadDataIntoTree.performAction();

		this.setCellRenderer(new IconTreeCellRenderer());
	}
}
